<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method='xml'
	indent="yes"
	omit-xml-declaration="yes"
	doctype-public = "-//W3C//DTD XHTML 1.0 Strict//EN"
	doctype-system = "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
	/>

<!-- parameters -->


<!-- image data -->
<xsl:param name="_id"/>

<xsl:template match="/">
	<html>
		<!-- html head -->
		<head>
			<title>Approve Comments</title>
			<link rel="stylesheet" type="text/css" href="style/approve.css"></link>
		</head>

		<body id="blog_body">
			<xsl:if test="($_user_logged_in)!='false'">
				<div id="blog_header_div">
				</div>
				<!-- content -->
				<div id="blog_content_div">
					<!-- comments -->
					<div id="blog_comment_div">

						<h4>Comments</h4>
						<a>
							<xsl:attribute name="href">index.php?op=manage</xsl:attribute>Back
						</a>
						<xsl:for-each select="/root/comments/comment">
							<hr/>
							<div>
								<a><xsl:attribute name="href">index.php?op=blog&amp;id=<xsl:value-of select="photoId"/></xsl:attribute><img align="center"><xsl:attribute name="src">index.php?op=thumb&amp;rat=0.15&amp;id=<xsl:value-of select="photoId"/></xsl:attribute></img></a> :: <xsl:value-of select="name"/> :: <xsl:value-of select="commenttext"/> :: <xsl:value-of select="date"/>
								<br/>
								<a><xsl:attribute name="href">index.php?op=approve&amp;form_posted=posted&amp;approved=1&amp;id=<xsl:value-of select="photoId"/>&amp;date=<xsl:value-of select="date"/></xsl:attribute>Approve</a>
								::
								<a><xsl:attribute name="href">index.php?op=approve&amp;form_posted=posted&amp;approved=0&amp;id=<xsl:value-of select="photoId"/>&amp;date=<xsl:value-of select="date"/></xsl:attribute>Reject</a>
								<br/>
							</div>
							<hr/>
						</xsl:for-each>

					</div>
				</div>
				<div id="blog_footer_div">
				</div>
			</xsl:if>
			<xsl:if test= "($_user_logged_in)!='true'">
				<h3>Permission forbidden. Not authenticated.</h3>
				<a>
					<xsl:attribute name="href">index.php?op=auth</xsl:attribute><strong>Log in </strong>
				</a>
			</xsl:if>
		</body>
	</html>
</xsl:template>
</xsl:stylesheet>
